package com.ruoyi.APPMS.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.APPMS.domain.Salevehicleorder;
import com.ruoyi.APPMS.mapper.SalevehicleorderMapper;
import com.ruoyi.APPMS.service.ISalevehicleorderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 车辆销售订单Service业务层处理
 *
 * @author 吴春梅
 * @date 2023-07-04
 */
@Service
public class SalevehicleorderServiceImpl extends ServiceImpl<SalevehicleorderMapper,Salevehicleorder> implements  ISalevehicleorderService{

    @Autowired
    SalevehicleorderMapper salevehicleorderMapper;
    @Override
    public List<Salevehicleorder> list(Salevehicleorder salevehicleorder) {
        return  salevehicleorderMapper.list(salevehicleorder);
    }

    @Override
    public boolean createsalevehicleorder(Salevehicleorder salevehicleorder) {
        return salevehicleorderMapper.createsalevehicleorder(salevehicleorder)>0 ;
    }

    @Override
    public boolean createsalevehicleorder2(Salevehicleorder salevehicleorder) {
        return salevehicleorderMapper.createsalevehicleorder2(salevehicleorder)>0 ;
    }

    @Override
    public boolean createsalevehicleorder3(Salevehicleorder salevehicleorder) {
        return salevehicleorderMapper.createsalevehicleorder3(salevehicleorder)>0;
    }

    @Override
    public Salevehicleorder getByid(Long salevehicleorderid) {
        return salevehicleorderMapper.listByid(salevehicleorderid);
    }

}
